package com.example.boot.exception;

import com.example.boot.ResultEnum.ResultEnum;

public class BootException extends RuntimeException {

	private Integer code;

	public BootException(ResultEnum rEnum) {
		super(rEnum.getMsg());// 父类构造方法有
		this.code = rEnum.getCode();
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

}
